var version = "1.0.075"; //当前版本号
sleep(1000);
toast("当前版本 -> " + version);
sleep(1000)
const x = device.getScreenWidth();  //屏幕的横坐标 x
const y = device.getScreenHeight();  //屏幕的纵坐标 y

var m = {

    "x": x / 250,
    "y": y / 3.5,
}
sleep(100)
showCtrlWindow();
sleep(100)
setCtrlViewSizeEx(m);
sleep(100)
//3秒后在UI线程消失掉
ui.getHandler().postDelayed(function () {
    ui.closeLogWindow();
}, 5000);
var toastExtra = {
    "x": 320,
    "y": 480,
    "width": 50,//宽
    "height": 70,//长度
    "duration": 60000,
    "textColor": "#1dfc04",
    "draggable": false
}
var toastExtra2 = {
    "x": 320,
    "y": 480,
    "width": 500,//宽
    "height": 700,//长度
    "duration": 60000,
    "textColor": "#1dfc04",
    "draggable": false
}

toast("开始守护", toastExtra)
sleep(1100)